package com.atguigu.guli.infrastructure.apigateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

// 因为引入了公共模块，但是网关模块并不需要连接数据库，因此需要禁用数据库连接，避免报错
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
public class InfrastructureApiGatewayMain9110 {

    public static void main(String[] args) {
        SpringApplication.run(InfrastructureApiGatewayMain9110.class, args);
    }
}